package com.anjubao.parking.municipal.roadside.mapper;

import com.anjubao.parking.municipal.parkinglot.dto.ParkingLotSlotDto;
import com.anjubao.parking.municipal.parkinglot.dto.ParkingLotStatusDto;
import com.anjubao.parking.municipal.roadside.model.ParkingLotSlot;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author anjubao
 */
@Mapper
public interface RoadsideParkingLotSlotMapper extends BaseMapper<ParkingLotSlot> {

    /**
     * 更新路边停车场数据
     * @param parkingLotSlotDtoList
     * @return
     */
    void updateParkingLotSlot(@Param("parkingLotSlotDtoList") List<ParkingLotSlotDto> parkingLotSlotDtoList);

    /**
     * 查询停车场车位信息
     * @return
     */
    List<ParkingLotStatusDto> selectFreeSlots();
}
